package com.zdp.provider.controller;

import com.zdp.provider.pojo.TeacherDo;
import lombok.Data;

import java.util.List;

/**
 * 类描述:
 *
 * @author ZhhengDP
 * @since 2021/8/16
 */
@Data
public class TeacherVo {
    private Integer id;
    private String name;
    private String sex;
    private Integer age;
    private String identify;
    private List<CourseDto> courses;

    public TeacherVo(){}

    public TeacherVo(TeacherDo teacherDo){
        id = teacherDo.getId();
        name = teacherDo.getName();
        sex = teacherDo.getSex();
        age = teacherDo.getAge();
        identify = teacherDo.getIdentify();
    }

    public TeacherVo(TeacherDo teacherDo,List<CourseDto> courses){
        this(teacherDo);
        this.courses = courses;
    }
}
